import request from '@/utils/request';

export function getDashboardStats() {
  return request<any, { userCount: number; todayVisit: number; systemDays: number; todoCount: number }>({
    url: '/api/dashboard/stats',
    method: 'get'
  });
}

export function getVisitTrend() {
  return request<any, { dates: string[]; counts: number[] }>({
    url: '/api/dashboard/visit-trend',
    method: 'get'
  });
}

export function getNotices() {
  return request<any, Array<{ date: string; content: string }>>({
    url: '/api/dashboard/notices',
    method: 'get'
  });
}